<template>
  <div>
    <button @click="up">updateName</button>
    <h2>{{ $store.getters.totalPrice}}</h2>
    <h2>{{totalPrice}}</h2>
  </div>
</template>

<script>
import { useGetters } from "../hooks/useGetters";
// import {mapGetters} from 'vuex'
export default {
  setup() {
    const getter = useGetters(["totalPrice"]);
    console.log(getter);
    return {
      ...getter,
    };
  },
};
</script>

<style lang="scss" scoped>
</style>